@import '~antd/dist/antd.css';

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5;
  color: rgba(0, 0, 0, 0.85);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Layout Styles */
.layout {
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.logo {
  margin-right: 24px;
}

.content {
  padding: 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer {
  text-align: center;
  padding: 24px 50px;
  background: #f0f2f5;
}

.footer-links {
  margin-bottom: 8px;
}

/* Home Page Styles */
.banner {
  text-align: center;
  padding: 40px 0;
}

.section {
  margin-bottom: 48px;
}

.feature-card {
  height: 100%;
  transition: all 0.3s;
}

.card-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  background-color: #f5f5f5;
}

.card-icon {
  font-size: 48px;
  color: #1890ff;
}

.tutorial-section {
  background-color: #f5f5f5;
  padding: 24px;
  border-radius: 8px;
}

.tutorial-card {
  height: 100%;
  position: relative;
  padding: 16px;
}

.step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1890ff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.feedback-section {
  padding: 24px 0;
}

.feedback-card {
  height: 200px;
  margin: 0 8px;
}

.feedback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

/* Tool Pages Styles */
.page-header {
  text-align: center;
  margin-bottom: 24px;
}

.tool-cards {
  margin-bottom: 48px;
}

.tool-card {
  height: 100%;
  transition: all 0.3s;
}

.tool-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background-color: #f5f5f5;
}

.tool-icon-wrapper svg {
  font-size: 36px;
  color: #1890ff;
}

.upload-card {
  margin-bottom: 24px;
}

.file-list-container {
  margin-bottom: 24px;
}

.options-card {
  margin-bottom: 24px;
}

.option-row {
  margin-bottom: 16px;
}

.option-label {
  font-weight: bold;
  margin-bottom: 8px;
}

.action-container {
  margin: 24px 0;
}

.progress-container {
  margin: 24px 0;
}

.result-container {
  margin: 24px 0;
  padding: 16px;
  background-color: #f6ffed;
  border-radius: 4px;
  border: 1px solid #b7eb8f;
}

.help-container {
  margin-bottom: 24px;
}

/* Image Compress Page Styles */
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.preview-item {
  flex: 1;
  min-width: 200px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 8px;
}

.preview-title {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  background-color: #fafafa;
  margin-bottom: 8px;
}

.image-size {
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
}

.empty-preview {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(0, 0, 0, 0.45);
  background-color: #fafafa;
  border-radius: 4px;
}

.empty-preview svg {
  font-size: 48px;
  margin-bottom: 16px;
}

.file-info {
  margin-top: 16px;
  padding: 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quality-value {
  margin-top: 8px;
  text-align: right;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 16px;
  }
  
  .logo {
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .banner {
    padding: 24px 0;
  }
  
  .tutorial-section {
    padding: 16px;
  }
  
  .card-icon-wrapper {
    height: 80px;
  }
  
  .card-icon {
    font-size: 36px;
  }
  
  .image-preview-container {
    flex-direction: column;
  }
  
  .preview-item {
    min-width: 100%;
  }
  
  .image-container {
    height: 200px;
  }
}

a {
  color: #0084ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00f2ff;
}

button, input, select, textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* 重写部分Ant Design样式 */
.ant-btn-primary {
  background: linear-gradient(90deg, #0084ff, #00f2ff);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 132, 255, 0.3);
}

.ant-btn-primary:hover, .ant-btn-primary:focus {
  background: linear-gradient(90deg, #0084ff, #00f2ff);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 132, 255, 0.4);
}

.ant-upload-drag {
  background: #f9fafc !important;
  border: 2px dashed #e6e9ef !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.ant-upload-drag:hover {
  border-color: #0084ff !important;
}

.ant-upload-drag-icon {
  color: #0084ff !important;
  font-size: 48px !important;
  margin-bottom: 16px !important;
}

.ant-upload-text {
  color: #333 !important;
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.ant-upload-hint {
  color: #666 !important;
}

.ant-slider-track {
  background: linear-gradient(90deg, #0084ff, #00f2ff) !important;
}

.ant-slider-handle {
  border-color: #0084ff !important;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0084ff;
} 